package com.paiai.lslease.dao.apphouse;

import com.paiai.lslease.auto.model.AppLock;
import com.paiai.lslease.model.AppLockTenantInfo;

import java.sql.SQLException;
import java.util.List;

public interface AppLockTenantInfoDAO {

    /**
     * 查询最新的租客租房信息的ID
     */
    int selectNeweastAppLockTenantId() throws SQLException;

    /**
     * 根据租客的ID查询租客的设备列表
     */
    List<AppLock> selectAllLockByTenantId(int tenantId) throws SQLException;

    /**
     * 根据设备ID查询租客扩展信息列表
     */
    List<AppLockTenantInfo> selectAllLockTenantInfoByLockId(String lockId) throws SQLException;
}
